import 'package:fish_redux/fish_redux.dart';
import 'package:www.znpigai.teacher/class_list_page/item/state.dart';

import 'adapter/adapter.dart';
import 'effect.dart';
import 'reducer.dart';
import 'state.dart';
import 'view.dart';

class StudentListPage extends Page<StudentListState, ClassState> {
  StudentListPage()
      : super(
          initState: initState,
          effect: buildEffect(),
          reducer: buildReducer(),
          view: buildView,
          dependencies: Dependencies<StudentListState>(
              adapter: NoneConn<StudentListState>() + StudentAdapter(),
              slots: <String, Dependent<StudentListState>>{}),
          middleware: <Middleware<StudentListState>>[
            logMiddleware(tag: 'StudentListPage'),
          ],
        );
}
